package mvc.bezier;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;

import org.geom.render.ViewJOGL;

import mvc.ControllerMouse3D;



public class BezierMouseController3D extends BezierSetter 
implements MouseListener, MouseMotionListener, KeyListener{

	ControllerMouse3D wrappedController;
	ViewJOGL view;
	
	public BezierMouseController3D(BezierModel model, ViewJOGL view3d) {
		super(model);
		this.view = view3d;
		
		wrappedController = new ControllerMouse3D(view3d);
	}

	public void mousePressed(MouseEvent e) {
		wrappedController.mousePressed(e);
	}

	public void mouseDragged(MouseEvent e) {
		wrappedController.mouseDragged(e);
	}
	
	public void keyPressed(KeyEvent e) {
		wrappedController.keyPressed(e);
	}

	public void keyReleased(KeyEvent e) {
		wrappedController.keyReleased(e);
	}

	public void keyTyped(KeyEvent e) {
		wrappedController.keyTyped(e);
	}

	public void mouseClicked(MouseEvent e) {
		wrappedController.mouseClicked(e);
	}

	public void mouseEntered(MouseEvent e) {
		wrappedController.mouseEntered(e);
	}

	public void mouseExited(MouseEvent e) {
		wrappedController.mouseExited(e);
	}

	public void mouseMoved(MouseEvent e) {
		wrappedController.mouseMoved(e);
	}


	public void mouseReleased(MouseEvent e) {
		wrappedController.mouseReleased(e);
	}

	public String toString() {
		return wrappedController.toString();
	}

}
